Skip to content

Retrieve predictive scording model by ID

Request

Retrieve a predictive scording model by ID.

Path
idinteger, (int64)required

Predictive Segment ID

curl -i -X GET \
  'https://api-cdp.treasuredata.com/entities/predictive_segments/{id}'

Responses

Returns a predictive segment by ID

Bodyapplication/vnd.treasuredata.v1+json
dataobject(PredictiveSegmentJsonApiResourceAttr)required
includedArray of objects(UserJsonApiResource)required
Response
{ "data": { "audienceId": "string", "baseSegmentId": "string", "segmentId": "string", "scoredSegmentId": "string", "name": "string", "description": "string", "categoricalAsColumnNames": [ … ], "categoricalArrayAsColumnNames": [ … ], "quantitativeAsColumnNames": [ … ], "accuracy": 0, "areaUnderRocCurve": 0, "gradeThresholds": [ … ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "modelUpdatedAt": "2019-08-24T14:15:22Z" }, "included": [ { … } ] }